package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.common.query.QueryObject;
import cn.wolfcode.luowowo.common.query.TravelQueryObject;

import java.util.List;

public interface TravelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    List<Travel> selectForList(QueryObject qo);

    int updateByPrimaryKey(Travel record);

    List<Travel> selectViewnumTo3ById(Long id);

    List<Travel> selectUserIdTravel(TravelQueryObject qo);

    List<Travel> listByUserFavor(TravelQueryObject qo);

    List<Travel> selectByUserId(Long userId);

    void updateState(Travel travel);
}